-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable layout debugging for impl Trait
type aliases
#70815
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
@bors r+ r? @jonas-schievink |
📌 Commit 8f6c109 has been approved by |
&format!("layout debugging: {:#?}", *ty_layout), | ||
&format!("layout debugging for type {:?}: {:#?}", ty, *ty_layout), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wondering if maybe this should be "layout for type" without "debugging".
Or "layout_of({}) = {:#?}"
:P.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(but this PR is rolled up so this is for another time)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be good to have some backticks if not that.
@RalfJung is there an issue for moving some/all |
Rollup of 5 pull requests Successful merges: - rust-lang#67797 (Query-ify Instance::resolve) - rust-lang#70777 (Don't import integer and float modules, use assoc consts) - rust-lang#70795 (Keep track of position when deleting from a BTreeMap) - rust-lang#70812 (Do not use "nil" to refer to `()`) - rust-lang#70815 (Enable layout debugging for `impl Trait` type aliases) Failed merges: r? @ghost
I also made it print the actual type name that the alias picks under the hood.